home *** CD-ROM | disk | FTP | other *** search
- unit ComClass1Impl;
-
- interface
-
- uses
- BaseLib_TLB, Windows, ActiveX, Classes, ComObj;
-
- type
- TComClass1 = class(TComObject, IFoo)
- protected
- {Declare IFoo methods here}
- procedure Bar; safecall;
- end;
-
- //const
- // Class_ComClass1: TGUID = '{1D02060B-0A08-4E8F-A57A-CCAF038445AF}';
-
- implementation
-
- uses
- ComServ, Dialogs, CommonUnit;
-
- { TComClass1 }
-
- procedure TComClass1.Bar;
- begin
- ShowMessage('Hello from a TComClass1 in ComServer1.dll')
- end;
-
- initialization
- TComObjectFactory.Create(ComServer, TComClass1, SharedClassID,
- 'ComClass1', '', ciInternal, tmApartment);
- end.
-